package flickr.api.test;

import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

public class TimeStampConverter {

	public static void main (String [] args) throws Exception{
		
		
		Calendar c = new GregorianCalendar();
		
		Date data = null; 
		 data = c.getTime();
		    System.out.println("TimeStampConverter.main() "+data);
		long d = 1330945415501L;
	
		c.setTimeInMillis(d);
	
	    c.getTimeInMillis();
	    data = c.getTime();
	    System.out.println("TimeStampConverter.main() "+data);
	    
	    long s = 1330947215264L;
	    c.setTimeInMillis(s);
	    data = c.getTime();
	    System.out.println("TimeStampConverter.main() "+data);
	   Timestamp ts = new Timestamp(data.getTime());
	   
	   long ts2l = ts.getTime();
	   System.out.println("********"+ts2l);
	}
	
}
